Replace custom compile_ts BUILD macro with standard ts_project rule Since version 3.2.0 rules_nodejs supports multiple npm roots, which so far was the blocker for using ts_project: https://github.com/bazelbuild/rules_nodejs/releases/tag/3.2.0 This is a building block for creating a separate unit of ts compilation for the api/ directory, which in turn will be needed for ts compilation of plugins. Change-Id: Ic9121b25dbcb0e39566f16467078be8699c1f117 
diff --git a/WORKSPACE b/WORKSPACE index eb81c70..cea9917 100644 --- a/WORKSPACE +++ b/WORKSPACE 
@@ -925,6 +925,7 @@  data = ["//:twinkie.patch"],  frozen_lockfile = False,  package_json = "//:package.json", + package_path = "",  yarn_lock = "//:yarn.lock",  )   @@ -943,6 +944,7 @@  ],  frozen_lockfile = False,  package_json = "//:polygerrit-ui/app/package.json", + package_path = "polygerrit-ui/app",  yarn_lock = "//:polygerrit-ui/app/yarn.lock",  )   @@ -950,6 +952,7 @@  name = "ui_dev_npm",  frozen_lockfile = False,  package_json = "//:polygerrit-ui/package.json", + package_path = "polygerrit-ui",  yarn_lock = "//:polygerrit-ui/yarn.lock",  )   @@ -957,6 +960,7 @@  name = "tools_npm",  frozen_lockfile = False,  package_json = "//:tools/node_tools/package.json", + package_path = "tools/node_tools",  yarn_lock = "//:tools/node_tools/yarn.lock",  )   @@ -965,6 +969,7 @@  args = ["--prod"],  frozen_lockfile = False,  package_json = "//:plugins/package.json", + package_path = "plugins",  yarn_lock = "//:plugins/yarn.lock",  )